﻿using System;
using System.Collections;

namespace Shop.Domain
{
    #region Userinfo

    /// <summary>
    /// Userinfo object for iBatis.Net mapped table 'userinfo'.
    /// </summary>
    public class UserInfo
    {
        #region Member Variables

        protected string _id;
        protected string _userpwd;
        protected short _rcode;
        protected string _rComment;

        #endregion

        #region Constructors



        public UserInfo()
        {
            this._userpwd = null;
            this._rcode = -1;
            this._rComment = null;
        }

        #endregion

        #region Public Properties

        public string Userid
        {
            get { return _id; }
            set
            {
                if (value != null && value.Length > 60)
                    throw new ArgumentOutOfRangeException("Invalid value for Userid", value, value.ToString());
                _id = value;
            }
        }

        public string Userpwd
        {
            get { return _userpwd; }
            set
            {
                if (value != null && value.Length > 60)
                    throw new ArgumentOutOfRangeException("Invalid value for Userpwd", value, value.ToString());
                _userpwd = value;
            }
        }

        public short Rcode
        {
            get { return _rcode; }
            set { _rcode = value; }
        }

        public string RComment
        {
            get { return _rComment; }
            set
            {
                if (value != null && value.Length > 65535)
                    throw new ArgumentOutOfRangeException("Invalid value for RComment", value, value.ToString());
                _rComment = value;
            }
        }



        #endregion
    }
    #endregion
}